<div class="yuList">
    <table class="table table-bordered">
        <thead>
        <tr>
            <td width="4%">活动ID</td>
            <td width="20%">活动名称</td>
            <td width="8%">问答数</td>
            <td width="10%">创建用户</td>
            <td width="12%">创建时间</td>
            <td width="6%">状态</td>
            <td width="6%">操作</td>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="list" key="k">
            <tr class="listBg">
                <td>{$list.activity_id}</td>
                <td>{$list.activity_name}</td>
                <td><a href="{:U('CommonQuestion/index',['activityId'=>$list['activity_id']])}" target="_blank">{$list.question_num}</a>
                </td>
                <td>{$list.emp_user_name}</td>
                <td>{$list.create_time}</td>
                <td style="color:#20ab4f;">{$list.status_name}</td>
                <td>
                    <a href="{:U('Activity/editActivity',['id'=>$list['activity_id']])}">编辑</a>
                    &nbsp;&nbsp;
                    <if condition="$list.status eq 1">
                        <a href="#" onclick="set_activity_status({$list.activity_id},2)">下线</a>
                        <else/>
                        <a href="#" onclick="set_activity_status({$list.activity_id},1)">上线</a>
                    </if>

                </td>
            </tr>
        </volist>
        </tbody>
    </table>
    <div class="pageFaye">
        <div class="pager">{$page}</div>
        <div class="clear"></div>
    </div>
</div>
